package org.elanfox.intellicommunity.biz.entity.statistics;

import lombok.Getter;
import lombok.Setter;
import org.elanfox.intellicommunity.biz.entity.Base2PO;
import org.elanfox.intellicommunity.common.constant.Constant;
import org.elanfox.intellicommunity.common.ienum.MsgEnums;

import javax.persistence.*;
import java.time.LocalDate;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/10/13
 */
@Entity
@Table(name = "ic_alarm_statistics")
@Setter
@Getter
@Cacheable(false)
public class AlarmStatisticsPO extends Base2PO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;
    @Column(name = "date", columnDefinition = Constant.DATE_COLUMN_DEFINITION)
    private LocalDate date;
    @Column(name = "alarm_type")
    private MsgEnums.AlarmType alarmType;
    /**
     * 数量
     */
    @Column(name = "total_count")
    private int totalCount;
    /**
     * 已处理数量
     */
    @Column(name = "total_handled")
    private int totalHandled;
    /**
     * 忽略数量
     */
    @Column(name = "ignore_count")
    private int ignoreCount;
    /**
     * 特殊监管警报数量
     */
    @Column(name = "special_count")
    private int specialCount;
}
